#include<stdio.h>

#define PI 3.14159

int main(void)
{
	double r,h;
	double s;
	
	scanf("%lf%lf",&r,&h);
	
	s=2*PI*r*(r+h);
	
	printf("%.2f",s);
	
	return 0;
}
